﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Weight.Model
{
    [Serializable]
    public class FieldEntity
    {
        /// <summary>
        /// 编号
        /// </summary>
        private int id;
        /// <summary>
        /// 表名称
        /// </summary>
        private string tableName;
        /// <summary>
        /// 字段
        /// </summary>
        private string field;
        /// <summary>
        /// 别名
        /// </summary>
        private string alias;
        /// <summary>
        /// 值类型
        /// </summary>
        private string valType;

        /// <summary>
        /// 默认值
        /// </summary>
        private string defaultVal;

        /// <summary>
        /// 是否是必填项
        /// </summary>
        private bool isMust;

        /// <summary>
        /// 是否显示
        /// </summary>
        private bool isShow;

        /// <summary>
        /// 是否保留
        /// </summary>
        private bool isRetain;

        /// <summary>
        /// 排序
        /// </summary>
        private int rank;

        /// <summary>
        /// 绑定词组
        /// </summary>
        private string bindPhrase;

        /// <summary>
        ///是否选择列
        /// </summary>
        public bool IsListSelect { get; set; }

        /// <summary>
        /// 编号
        /// </summary>
        public int Id { get => id; set => id = value; }
        /// <summary>
        /// 表名称
        /// </summary>
        public string TableName { get => tableName; set => tableName = value; }
        /// <summary>
        /// 字段
        /// </summary>
        public string Field { get => field; set => field = value; }
        /// <summary>
        /// 别名
        /// </summary>
        public string Alias { get => alias; set => alias = value; }
        /// <summary>
        /// 值类型
        /// </summary>
        public string ValType { get => valType; set => valType = value; }
        /// <summary>
        /// 默认值
        /// </summary>
        public string DefaultVal { get => defaultVal; set => defaultVal = value; }
        /// <summary>
        /// 是否是必填项
        /// </summary>
        public bool IsMust { get => isMust; set => isMust = value; }

        /// <summary>
        /// 是否展示
        /// </summary>
        public bool IsShow { get => isShow; set => isShow = value; }
       
        /// <summary>
        /// 排序
        /// </summary>
        public int Rank { get => rank; set => rank = value; }

       /// <summary>
       /// 刷新是否保留
       /// </summary>
        public bool IsRetain { get => isRetain; set => isRetain = value; }

        /// <summary>
        /// 绑定词组
        /// </summary>
        public string BindPhrase { get; set; }
    }
}
